﻿using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KDS.Mes.Mes.Materials
{
    /// <summary>
    /// 材质信息
    /// </summary>
    [Table("T_BomMaterial")]
    public class Material : FullAuditedEntity
    {
        /// <summary>
        /// 材质名称
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string MaterialName { get; set; }

        /// <summary>
        /// 材质代码
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string MaterialCode { get; set; }

        public Material(string materialName, string materialCode)
        {
            MaterialName = materialName;
            MaterialCode = materialCode;

        }

        public Material()
        {

        }
    }
}
